package com.amado.course37CharStream;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

public class S03InputStreamReader {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		System.out.println(str);
		br.close();
		test();
	}

	/**
	 * System.in:为InputStream类型，代表标准输入流，默认的数据源为键盘
	 * System.out:为PrintStream类型，代表标准输出流，默认的数据汇是控制台
	 * System.err:为PrintStream类型，代表标准错误输出也流，默认的数据汇是控制台
	 */
	public static void test() {
		Scanner scanner = new Scanner(System.in);
		System.out.println("aa");
		System.err.println("BB");

	}
}
